﻿<%@ Page Language="C#" MasterPageFile="~/ProductManager/ProductManage.Master" AutoEventWireup="true" CodeFile="SMTPSetting.aspx.cs" Inherits="SuperManager_SMTPSetting" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="2"><asp:Label ID="lblEmailtitle" runat="server" Text="配置 SMTP 设置 " /></td>
        </tr>
        <tr>
            <td align="left"><asp:Label ID="lblServerAddress" runat="server" Text="Smtp服务器：" /></td>
            <td align="left"><asp:TextBox ID="txtSmptMane" runat="server" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtSmptMane"
                    ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="left"><asp:Label ID="lblnum" runat="server" Text="Smtp账号：" /></td>
            <td align="left">
                <asp:TextBox ID="txtNum" runat="server" Width="170px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtNum"
                        ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>                                    
        </tr>
        <tr>
            <td align="left"><asp:Label ID="lblpasswrod" runat="server" Text="Smtp密码：" /></td>
            <td align="left">
                <asp:TextBox ID="password" runat="server" Width="170px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="password"
                    ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="left"><asp:Label ID="lblpost" runat="server" Text="邮件发送者" /></td>
            <td align="left">
                <asp:TextBox ID="txtpost" runat="server" Width="170px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtpost"
                    ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtpost"
                    ErrorMessage="格式不对" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr align="left">
            <td></td>
            <td><asp:Button ID="btnUpdateEmail" runat="server" Text="更  新" onclick="btnUpdateEmail_Click" /></td>
        </tr>
    </table>
    </ContentTemplate>
    </asp:UpdatePanel>
    
</asp:Content>

